package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import com.ym.medical.domain.entity.DoctorPhoneSettingEntity;
import com.ym.common.annotations.CustomConstraint;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 电话问诊规则对象 doctor_phone_setting
 *
 * @author ym
 * @date 2020-09-14
 */
@ApiModel("电话问诊规则-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DoctorPhoneSettingUpdateParam extends BeanCovert<DoctorPhoneSettingEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("医生服务项主键")
    private Long docServId;

    @ApiModelProperty("星期")
    @Size(max = 20, message = "星期长度超过{max}", groups = {Add.class, Update.class})
    private String dpsWeek;

    @ApiModelProperty("预约时间")
    @NotNull(message = "预约时间不能为空", groups = {Add.class, Update.class})
    private Date appointTime;

    @ApiModelProperty("重要标志")
    @Size(max = 6, message = "重要标志长度超过{max}", groups = {Add.class, Update.class})
    private String flag;

    @ApiModelProperty("被预约标志")
    @Size(max = 2, message = "被预约标志长度超过{max}", groups = {Add.class, Update.class})
    private String notFalg;

    @ApiModelProperty("周天标识")
    private Integer weekFlag;

    @ApiModelProperty("创建时间")
    @NotNull(message = "创建时间不能为空", groups = Add.class)
    private Date createTime;

}
